<note>
	<title><![CDATA[<h1><?php echo $note->title ?></h1>]]></title>
	<date><![CDATA[<?php echo $note->date ?>]]></date>
	<content><![CDATA[<?php echo nl2br($note->body) ?>]]></content>
	<footer><![CDATA[
		<a href="#" id="openComments"><?php
			if(count($note->comments) > 1)
				echo count($note->comments).' comments';
			else echo count($note->comments).' comment';
		?></a> - 
		<?php
			if(count($note->photos) > 1)
			{	
				echo '<a href="#" id="openPhotos">'.count($note->photos).' photos</a>';
			}
			elseif(count($note->photos) == 1)
			{
				echo '<a href="#" id="openPhotos">1 photo</a>';
			}
			else
			{
				echo '0 photo';
			}
		?>
	]]></footer>
	<comments>	
	<![CDATA[
		<?php
		// @todo : design this
		foreach($note->comments as $comment)
		{
			echo '<h2>From '.$comment->name.'</h2>';
			echo '<p>'.$comment->body.'</p>';
		} 
		?>
	]]>
	</comments>
	<commentFooter>
	<![CDATA[
		<a href="#" id="openAddComment">Add a comment</a>
	]]>
	</commentFooter>
	<contentComment>
	<![CDATA[
		<?php
			echo '<h2>From : </h2><input id="from" type="text" size="40"/>';
			echo '<h2>Comment : </h2><textarea id="newcomment" rows="12" cols="50"/><br/>';
			echo '<a id="saveComment" href="javascript:validateComment('.$note->id.');">Validate the comment</a>&nbsp;&nbsp;&nbsp;';
			echo '<a id="cancelComment" href="javascript:closeComment();">Cancel</a>';
		?>
	]]>
	</contentComment>
	<?php foreach($note->photos as $photo): ?>
	<photo><?php echo $photo->filename; ?></photo>
	<?php endforeach; ?>
	<?php if(isset($photoNumberInSlider)):?>
	<photoNumberInSlider><?php echo $photoNumberInSlider; ?></photoNumberInSlider>
	<?php endif; ?>
</note>